home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_08_04
/
8n04119a
< prev
next >
Wrap
Text File
|
1990-03-18
|
549b
|
24 lines
***************
** Listing 4 **
***************
/*
fork_start() -- Start the forked routine
This routine is used to call the forked routine. It
passes the four bytes to the target routine and then
resumes the previous task, which should always be the
fork queue. */
void fork_start()
{
/* Call the routine, passing the long parameter and the
address of the working TSS. */
(*current_routine)(current_param, &fdummy_tcb);
/* Task switch back to the fork queue task. */
resume_last();
}